@WhoAmI68 said in Sed stream editor on the filter.log file:
I am using this sed stream editor "sed -i '' '/65.20.170.33/d' /var/log/filter.log" to delete the match line from the filter.log file.
sed reads the file, 'seds' it and rewrites the same file ?
But what about this ?
AFAIK : can syslog 'grep' what it is outputting ? Thus filtering the messages. ?
If so, have a look at where /etc/syslog.conf is created, add your grep instructions and call it a day ?